<template>
  <div class="item">
    <img :src="item.img" alt="" />
    <p>{{ item.desc }}</p>
    <div>
      <span>{{ item.name }}</span>
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    item: Object,
  },
  data() {
    return {};
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped>
.item {
  width: 48%;
  img {
    width: 100%;
    height: 140px;
  }
  > p {
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  > div {
    display: flex;
    justify-content: space-between;
  }
}
</style>
